package net.airtheva.uniqueTask2.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import net.airtheva.uniqueTask2.R;
import net.airtheva.uniqueTask2.R.id;
import net.airtheva.uniqueTask2.R.layout;

public class TwoRowBox extends LinearLayout {

	TextView mTitle = null;
	TextView mSubtitle = null;
	
	public TwoRowBox(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void onFinishInflate() {
		// TODO Auto-generated method stub
		super.onFinishInflate();
		LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view = inflater.inflate(R.layout.two_row_box, null);
		
		mTitle = (TextView) view.findViewById(R.id.two_row_box_title);
		mSubtitle = (TextView) view.findViewById(R.id.two_row_box_subtitle);
        
        addView(view);
	}
	
	public void SetTitle(String title) {
		mTitle.setText(title);
	}
	
	public void SetSubtitle(String subtitle) {
		mSubtitle.setText(subtitle);
	}
	
}
